package com.springboot.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.springboot.pojo.Person_1;
import com.springboot.service.PersonHystrixService_1;

@Controller
public class UiController_1 {
	@Autowired
	private PersonHystrixService_1 personHystrixService;

	@RequestMapping("/dispatch")
	@ResponseBody
	public List<Person_1> sendMessage(String personName) {
		return personHystrixService.save(personName);
	}
	
}
